package com.gin.fanbox.param;

import com.gin.fanbox.utils.QsUtils;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.LinkedHashMap;

/**
 * @author bx002
 * @since 2024/2/6 10:59
 */
@Getter
@Setter
@NoArgsConstructor
public class PostListCreatorParam extends PostListHomeParam {
    String creatorId;

    public PostListCreatorParam(String nextUrl) {
        super(nextUrl);
        final LinkedHashMap<String, String> parameterMap = QsUtils.parseParameterMap(nextUrl);
        this.creatorId = parameterMap.get("creatorId");
    }
}
